package com.sms.web.system.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.sms.web.system.entity.SysUserRole;

/**
 * @desc 
 * @author wjw
 * @time 2017年11月16日下午3:33:11
 */
public interface SysUserRoleDao extends JpaRepository<SysUserRole, String>, JpaSpecificationExecutor<SysUserRole> {
    
	@Query("FROM SysUserRole WHERE role.id = ?1 ")
    public List<SysUserRole> findByRoleId(String roleId);
}
